package com.zys.el.time.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @TableName topic
 */
@TableName(value ="topic")
@Data
public class Topic implements Serializable {
    /**
     * 话题id
     */
    @TableId
    private Long topicId;

    /**
     * 话题标题
     */
    private String topicTitle;

    /**
     * 频道id
     */
    private Long channelId;

    /**
     * 创建者id
     */
    private Long userId;

    /**
     * 是否删除(0-未删, 1-已删)
     */
    @TableLogic
    @TableField(select = false)
    private Integer isDelete;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新时间
     */
    private Date updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}